import json

with open('./RGBparams.json', 'r', encoding='utf-8') as f:
    RGB = json.load(f)
print(RGB)

adict = {0: 'USB Video Device', 1: 'Integrated Camera'}

camerasID = 9

for d in dict(adict):
    print(adict[d])
    if 'Video Device' in adict[d]:
        camerasID = d
        print("find camera")

print('XW500 id=', camerasID)